import { http } from '@/utils/http/axios';

export const orgtree = (data = {}) => {
  return http.request({
    url: `/uc/user/org/orgtree`,
    method: 'post',
    contentType: 'application/x-www-form-urlencoded',
    params: data,
  });
};

export const localOrgtree = (data = {}) => {
  return http.request({
    url: `/crm/user/org/orgtree`,
    method: 'post',
    contentType: 'application/x-www-form-urlencoded',
    params: data,
  });
};

export const orgswitch = (data = {}) => {
  return http.request({
    url: `/uc/user/org/switch/org`,
    method: 'post',
    contentType: 'application/x-www-form-urlencoded',
    params: data,
  });
};

export const localOrgswitch = (data = {}) => {
  return http.request({
    url: `/crm/user/org/switch/org`,
    method: 'post',
    contentType: 'application/x-www-form-urlencoded',
    params: data,
  });
};
